import axios from './$http'


const cache = new Map();

const api = {
    clearCache() {
        cache.clear();
    },
    async sync(startDate, endDate) {
        await axios.post(`/hbos-business-thirdparty-integration/medicare/trade/sync`, {
            startDate,
            endDate
        });
        return axios.tid;
    },
    async querySyncLog(tid) {
        const result = await axios.post(`/hbos-business-thirdparty-integration/medicare/trade/querySyncLog`, {
            tid
        });
        return result;
    }
}

export default api;